package com.fei.test;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;

public class GenerateIps {
	public static void main(String[] args) throws Exception {
		BufferedReader reader = new BufferedReader(
				new FileReader(new File("D:\\Project\\zy\\maven-test\\src\\main\\java\\com\\fei\\test\\ips")));

		String line = null;
		while ((line = reader.readLine()) != null) {
			line = line.trim();
			String host = "host-" + line.replace(".", "-");

			System.out.println(line + " " + host);
		}

		reader.close();
	}
}
